import Vue from 'vue'
import Vuex from 'vuex'
import App from './App'
import MpvueRouterPatch from 'mpvue-router-patch'
import mpvueToastRegistry from 'mptoast'
Vue.use(mpvueToastRegistry)

Vue.config.productionTip = false
Vue.use(MpvueRouterPatch)
App.mpType = 'app'

const app = new Vue(App)
app.$mount()

Vue.use(Vuex);

/*Vue.prototype.getList = function () {
      wx.showLoading({
        title: '加载中',
    })
    this.$http.get('sell#!method=get').then((res)=>{
        this.restaurant = res.data.data.restaurant;
        this.goods = res.data.data.goods;
        this.seller = res.data.data.seller;
        this.ratings= res.data.data.ratings
      wx.hideLoading();
      }).catch((e)=>{
      console.log(e)
    })
}*/

export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: [
      '^pages/home/index'
    ],
    window: {
      backgroundTextStyle: '#44b2f7',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: '中青网投',
      navigationBarTextStyle: 'black'
    },
    tabBar: {
      color: "#969696",
      selectedColor: "#44b2f7",
      backgroundColor: "#fff",
      borderStyle: "#FFF",
      list: [
        {
          pagePath: "pages/home/index",
          iconPath: "static/assets/home.png",
          selectedIconPath: "static/assets/bluehome.png",
          color:"white",
          text: "中青"
        },
        {
          pagePath: "pages/detail/list",
          iconPath: "static/assets/money.png",
          selectedIconPath: "static/assets/bluemoney.png",
          text: "理财"
        },
        {
          pagePath: "pages/fuli/index",
          iconPath: "static/assets/find.png",
          selectedIconPath: "static/assets/bluefind.png",
          text: "福利"
        },
        {
          pagePath: "pages/my/index",
          iconPath: "static/assets/person.png",
          selectedIconPath: "static/assets/blueperson.png",
          text: "账户"
        },

      ]
    }
  }
}
